import { defineConfig } from 'vite'
import { resolve } from 'path'
import vue from '@vitejs/plugin-vue'
import { viteMockServe } from 'vite-plugin-mock'

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [vue(), viteMockServe({ mockPath: './mock', localEnabled: true })],
    resolve: {
        alias: {
            '~': resolve(__dirname, './src')
        }
    },
    server:{
        proxy:{
            '/api': 'localhost:5000'
        }
    }
})
